<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ПораБЫ!</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" /> 
<script src="http://api-maps.yandex.ru/1.1/index.xml?key=AJ_VfUwBAAAA1NdEOAIAWI_RmpQ30G47X7x7gN-YrEa7dCkAAAAAAAAAAACXXJIiwHOHmuFj9mzywo1FeEqEGQ==" type="text/javascript"></script>
<link rel="stylesheet" href="/files/style.css" type="text/css">
<script src="/files/jquery.js"></script>
<script src="/files/jquery-1.4.2.min.js"></script>
<script>
$(document).ready(function() {   
    $('a[name=modal]').click(function(e) {
    e.preventDefault();
    var id = $(this).attr('href');
  
        var maskHeight = $(document).height();
    var maskWidth = $(window).width();
  
    $('#mask').css({'width':maskWidth,'height':maskHeight});
  
    $('#mask').fadeIn(1000); 
    $('#mask').fadeTo("slow",0.8); 
  
    var winH = $(window).height();
    var winW = $(window).width();
  
   $(id).css('top',  winH/2-$(id).height()/2);
    $(id).css('left', winW/2-$(id).width()/2);
  
    $(id).fadeIn(2000); 
  
   });
  
    $('.window .close').click(function (e) {
e.preventDefault();
    $('#mask, .window').hide();
    }); 
 
    $('#mask').click(function () {
    $(this).hide();
    $('.window').hide();
    }); 
  
    });  
</script>
<script src="/files/script.js"> </script>
</head>
<body>
<div class="fixblock">
	{% if user.is_authenticated %}
    <span class="auth">Вы вошли как {{user.username}} &nbsp&nbsp;&nbsp;|&nbsp;&nbsp; </span> <a href="/food/addcri/" class="auth" >Добавить Рецензию</a> &nbsp;&nbsp; <a href="/accounts/profile/" class="auth">Профиль</a> &nbsp;&nbsp; <a href="/accounts/logout/" class="auth"> Выход</a>
    {% else %}
    <a href="/accounts/login/" class="auth">Вход</a> &nbsp;&nbsp; <a href="/accounts/register/" class="auth"> Регистрация</a>
    {% endif%}
</div>
<table width="96%" class="list" cellspaceing="0" cellpadding="0" border="0">
      <tr><td width="18px"></td>
	 <td width="700px" colspan="5" valign="top" ><br><a href="/food/" class="pora">&nbsp;Пора&nbsp;</a><a href="/food/" class="bi"> БЫ&nbsp;</a>
	<span class="dop">отыскать лучшие кафе и рестораны</span><br> </td><td width="300px">&nbsp;</td>
	<td width="18px"></td>
      </tr>
      <tr>
          <td height=13px colspan="8"></td>
      </tr>
      <tr>
    	  <td>&nbsp;</td>
	  <td colspan="6" valign="top"> <span><a href="/food/top/" class="menu">30 Лучших</a> </span><span class="razdel">|</span>	  
	  <span><a href="/food/freshcri/" class="menu">Свежии рицензии </a> </span><span class="razdel">|</span>
	  <span><a href="/food/shit/" class="menu">30 Худших </a> </span><span class="razdel">|</span>
	  <span><a href="#" class="menu">О чём этот сайт?</a> </span></td><td></td>
	</tr>
      <tr>
{% block content%}
{% endblock%}
      </tr>
   </table><br><br>
</body>
</html>
